package edu.tongji.jiaowu.service.impl;

import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.StudentDao;
import edu.tongji.jiaowu.service.StudentManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class StudentManagerImpl extends BaseManagerImpl implements StudentManager {
	private StudentDao studentDao;

	public CommonBean createStudent() {
		return studentDao.createStudent();
	}

	/*
	 public CommonBean findStudents(String refid) {
	 return studentDao.findStudents(refid);
	 }
	 */
	public CommonBean findStudentById(String id) {
		return studentDao.findStudentById(id);
	}

	public CommonBean findAllStudents() {
		return studentDao.findAllStudents();
	}

	public void insertStudent(CommonBean studentBean) {
		studentDao.insertStudent(studentBean);
	}

	public CommonBean findStudentByNo(String studentNo) {
		return studentDao.findStudentByNo(studentNo);
	}
	
	public boolean getArrears(String studentNo) {
		return studentDao.getArrears(studentNo);
	}
	public StudentDao getStudentDao() {
		return studentDao;
	}

	public void setStudentDao(StudentDao studentDao) {
		this.studentDao = studentDao;
	}

	public CommonBean newAccountStudents() {
		return studentDao.newAcchountStudents();
	}


}
